People deficient in vitamin D might have a greater risk of developing diabetes, according to a study.