British retailer Marks & Spencer will raise cash from investors and cut its dividend to finance a joint venture with online supermarket pioneer Ocado that will give M&S a full online food delivery service for the first time.