US confectioner Hershey has raised its full-year profit outlook despite reporting a 10% drop in third-quarter earnings.