Housing affordability has improved, according to new figures