US confectionery giant Hershey saw its profits increase in 2012 - and cheered the market by upping its guidance for earnings this year.