German fashion retailer C&A is to close 21 underperforming stores in Spain by the end of next month as part of efforts to restructure the business for future growth.