Magnesium may help stave off cancer, study says