Drinking cups of tea and coffee 'can prevent diabetes'