Winchester has leapfrogged Oxford to become the UK’s least affordable city to buy a home, says a survey.