Housing markets in countries across the globe cooled this year due to factors such as rises in inflation and borrowing costs.