The volume of M&A deals hit a five-year high in Ireland in 2018, despite political uncertainties causing a considerable slowdown towards the end of the year.