Women who develop gestational diabetes before a certain point in their pregnancy have a higher chance of having a child with autism, new research shows.