Greece to hold snap elections after MPs fail to elect president