Avoiding sugary drinks can help thwart cancer, according to a study into prevention of the disease.