Average price gap between houses and flats is at highest point in 30 years