Are foreign buyers driving up housing prices?

Many believe foreign buyers are responsible for sky high housing prices in Toronto and Vancouver. But is there data to back that up?