Former Marks & Spencer manufacturer Castleblair has sold its last remaining factory, ending almost a century of textiles production.