The influence of CO ice on the activity and near-surface differentiation of comet nuclei