UK supermarket operator J Sainsbury has said that its US subsidiary, Shaw's Supermarkets, has agreed to buy five stores from Vermont-based GU Markets.