Carrefour, the world's second-largest retailer, is to withdraw from Russia just four months after opening its first store in the country.