Carlsberg is to close a brewery in the Danish capital of Copenhagen as it looks to cut costs from its ailing operations in Western Europe.