Hershey said the price hike is related to cost of cocoa, which has increased exponentially in recent years.