Women who have gestational diabetes during pregnancy can lower their risk of developing type 2 diabetes by taking up on exercise, a new study has found.