Marks and Spencer has revealed plans to redevelop its UK store estate using demographic data to tailor its offer.