Metro Bank has returned to profitability after overhauling its costs by slashing the number of staff and selling a portion of its mortgage book.