Learning to school in the presence of hydrodynamic interactions