UK house prices bucked the pandemic and climbed 7.5% in 2020, according to building society Nationwide.