Lifestyle changes help prevent pregnancy-related diabetes