J. M. Smucker has bought jam brand Knott's Berry Farm from fellow US food group ConAgra Foods.