The EAGLE simulations: atomic hydrogen associated with galaxies