Greece's parliament has failed to elect a new president of the Republic in the second of four rounds of voting on Friday.