Bifurcation in a delayed worm propagation model with birth and death rates