Network models of stochastic processes in cancer