Modeling flocculation of biological cells