Homebase has been sold to retail group CDS in a rescue deal securing up to 1,600 jobs and 70 stores but leaving the future of its remaining 2,000 workers and 49 shops unclear.