The managing director of upmarket UK grocery retailer Waitrose has quit.