A genetic switch controls the production of flagella and toxins in Clostridium difficile