JM Smucker has reported an increase in full-year earnings despite a drop sales at the group's US consumer foods unit.