Hopf bifurcation in a environmental defensive expenditures model with time delay