Swiss food giant Nestlé is to cut 270 jobs at a factory that produces Easter eggs and Quality Street confectionery.