Israel's president on Wednesday urged political leaders to compromise in forming a government after an election he said had no clear winner and condemned "racist" rhetoric against Arab parties.