Retailer CDS agreed a deal to prevent the business from going into administration