US food group JM Smucker has cut its forecast for annual sales after a drop in revenue in the second quarter.