A town in Fife has been revealed as the place in Scotland which saw the biggest increase in house prices this year.