Hershey, the confectionery giant, is to see another top executive leave the company.