Carlsberg has confirmed that it is in negotiations to sell one of its breweries in Germany.