US confectionery giant Hershey has revealed it is to divest three brands so it can prioritise "scale assets".