Spain is planning to introduce a 100 per cent tax on properties bought by non-EU residents in its latest move to protect the housing market from foreign buyers.