Carlsberg has confirmed plans to close up to half of its breweries in western Europe.