Fasting may ward off diabetes