Catalan separatists lose majority as Spain’s pro-union Socialists win regional elections