Interplay between 3d and 4f magnetism in CeCoPO