US grocery retailer A&P is to close 25 stores as part of management's strategy to turn around the business.