CNO behaviour in planet-harbouring stars. II. Carbon abundances in stars with and without planets using the CH band