US food maker JM Smucker has reported a drop in third-quarter profits, hit by higher costs of edible oils, peanuts, flour and green coffee.