Struggling high-street retailer Marks & Spencer is looking to contract out its online retail division.