Low thyroid increases risk of diabetes, study shows