Spain's regional elections dealt a blow to the opposition Socialists, but failed to signal a clear path to avoid a third vote in December.