The control of phenotypic diversity in vibrio cholerae during the transition between motility and attachment