The problem is that many things that reduce the probability of cancer increase the probability of other diseases.
Therefore there is no good solution for this.
For instance, some studies have demonstrated that certain kinds of malnutrition, i.e. the consumption of inadequate amounts of protein and/or with bad amino-acid profile, inhibited the development of tumors caused by carcinogen agents (in rats and mice). This was not really surprising, because tumors grow faster than the rest of the body so they need to synthesize more proteins. If they are starved, they grow slowly and the immune system has time to react and to eliminate the incipient tumors early enough.
Despite this, starving yourself in the hope to avoid cancer would be a very bad idea. While the probability of cancer is lowered, the probabilities of low resistance to infectious diseases or of muscular weakness leading to falling and breaking some limb, or of cardio-vascular diseases, become higher.