What causes yeast infections—and how to avoid them