A record proportion of mortgage lending was made to home movers during a surge in the UK housing market.