Online fashion retailer Shop Direct is to close three warehouses in the UK, putting nearly 2,000 jobs at risk, as part of a relocation of its distribution operations.