Dense cores in dark clouds. IV: HC5N observations