Chocolate manufacturer Hershey Co. posted an increase in its first quarter net sales and profit, helped by price hikes in most of its products in response to the tremendous rise in the cost of cocoa.