Intermittent fasting is popular for weight-loss. A new study finds it might help with diabetes too.