David Walmsley has been appointed to help lead Marks and Spencer's e-commerce business.