Quenching time-scales of galaxies in the EAGLE simulations