Risk theory for the compound Poisson process that is perturbed by diffusion