The Ontario government said it was raising the real estate speculation tax for foreign buyers to 25% from 20% under a plan to tackle a housing crisis in Canada's most populous province.