Hershey forecast annual profit below Wall Street estimates as record cocoa prices weigh on the Kit Kat maker's margins.