A comparative study of the ground state transitions of CO and C I as molecular gas tracers at high redshift