Tax changes have stemmed the flow of overseas house hunters seeking a buy-to-let property or second home in the last five years.