After much speculation, US food manufacturer Kraft Foods has announced it is closing its Terry's chocolate factory in York next year.