UK retailer Marks & Spencer is to close five of its stores in Shanghai and has confirmed its head of Asia is to step down.