Abundance and group coalescence timescales of compact groups of galaxies in the EAGLE simulation