Galaxy groups in the 2dF Galaxy Redshift Survey: luminosity and mass statistics