2 Sisters Food Group has confirmed it will close a loss-making poultry factory in South Lanarkshire, Scotland, putting hundreds of jobs at risk.