J.M. Smucker has posted a dip in second-quarter sales and flat profits from its US retail consumer foods arm, the company's largest business unit by revenue.