Hershey has cut its target for annual sales, on the back of foreign exchange and lower-than-expected sales in China.