US food group Kraft Foods is to close its Terry's chocolate facility in York, England with the loss of more than 300 jobs.