Carrefour has sold its stake in its venture in Indonesia, the latest move to refocus its attention on a smaller number of markets worldwide.