Stability and bifurcation in a generalized delay prey–predator model