Micheál Martin looks set to return as taoiseach, with Fianna Fáil edging ahead of Fine Gael in a general election that looks certain to return a coalition between the parties for another five years.