Falling beer sales in the UK have prompted Carlsberg to announce a brewery closure in the country, with the loss of 170 jobs.