Bacteria in the mouths of pregnant women can contribute to pre-term birth, according to researchers.