subset-cohorts function

Subset a cohorts object