Carlsberg has signed deals to split brewing of its Tetley's beer in the UK between Molson Coors and Marston's.