Knitwear manufacturer Cooper & Roe is to axe up to 340 jobs when it closes one of its plants and cuts down its workforce at another.