Textile maker Desmond & Sons is to close its Springtown and Dungiven trouser factories with the loss of 315 jobs.