Catalan election weakens bid for independence