Spain's Socialists are considering their next move after coming top in Sunday's parliamentary election, but failing to win an outright majority.