Hundreds of manufacturing roles have been lost after a food company confirmed plans to shut sites across the country.