This is clearly a supply problem.  Build more houses.  In the short term heavily penalize people who flip houses for profit.  Foreign buyers only account for something like 6% of home sales so I'm not sure that a tax on that segment is really going to change anything.