Yarn and fabric maker Carolina Mills is to close its plants in the towns of Valdese and Newton, with the loss of more than 220 jobs.