Central and satellite colours in galaxy groups: a comparison of the halo model and SDSS group catalogues