US grocer A&P, which is trying to revitalise its business after a troubled two years, has sold six Pathmark stores under a sale-and-leaseback deal.