A CO survey of the dark clouds in Ophiuchus