US confectioner Hershey has booked an increase in first-quarter earnings and raised its full-year profit forecast.