Tests for diabetes in pregnancy - which affects the developing baby - are taking place too late, warn scientists.