Abundance and group coalescence time-scales of compact groups of galaxies in the EAGLE simulation