The Co-operative Group has announced its intention to sell or shut its 36 department stores after the unit suffered large losses last year.