A tax doesn't solve the real source of the issue.  In a free market house prices will increase due to lack of supply, not because of foreign purchasers.  The lack of supply has to do with political decisions made by governments and bureaucratic administrations regarding land over the years.