With no outright winner, it may take weeks of haggling to form a government after a race that reflected the angry mood of European voters.