JM Smucker has reported falling quarterly profits from its consumer food business as higher commodity costs ate into earnings.