Switzerland has rejected plans for a new tax on the super-rich after wealthy residents threatened to leave the country.