The chief operating officer of US wholesaler Costco is to retire from the firm on 4 June.