The UK arm of Heineken is set to become one of the largest pub owners in the country after agreeing to buy the Galaxy Pub Estate from Royal Bank of Scotland for GBP412m (US$646m).