Loss-making department store group Karstadtquelle is to sell 77 of its 181 stores as part of a major shake-up to try to haul itself back into profit.