Ring galaxies in the EAGLE hydrodynamical simulations