US confectionery firm The Hershey Company has reported lower quarterly results due to one-time charges relates to its business realignment strategy.