Mapped: the best and worst towns to rent and buy