Homebuyers who are not UK residents will be forced to pay a higher rate of stamp duty under a Tory government, the party has announced.