Numerical convergence of hydrodynamical simulations of galaxy formation: The abundance and internal structure of galaxies and their cold dark matter haloes