Longevity protein may help treat diabetes, cancer: study