Enéas Pestana, the chief executive of CBD, Brazil's largest retailer, has resigned after three years in charge.