US confectionery firm Hershey Foods has reported a rise in quarterly profit, helped by better profit margins due to cost cuts and an improved product mix.