US food group JM Smucker has booked an increase in second-quarter profits and upped its earnings guidance for the full-year.