Marks & Spencer invests in online business