J.M. Smucker has struck a deal to buy the Wesson cooking oil brand from US peer Conagra Brands for around US$285m.