US baked-goods supplier Hostess Brands has entered into an agreement to buy a Canada-based wafer and cookie business for US$320m.