Drink coffee, avoid cancer and diabetes: study