Israel faces political uncertainty after the leaders of both its main parties claimed they had won the country's election.