Spain's PM has revealed his government intended to discourage nationals from countries outside the European Union from buying on the Costas through taxes.