Compound from olive oil may help prevent diabetes: study