Fianna Fáil and Fine Gael close on some issues but last mile to government formation could be hardest