Metro Bank has confirmed the sale of a portfolio of owner-occupied residential mortgages to NatWest for up to £3.1bn.