Homebuyers across the UK typically spent just over a fifth of their gross income on their mortgage payments last year, UK Finance said.