TreeHouse Foods is set to buy Canada-based jam-to-ketchup firm E.D. Smith & Sons.