UK residents planning to buy a holiday home in Spain have been warned they could be hit with a 100% tax rise as the country tries to tackle its housing shortage.