Stability and Hopf bifurcation in a delayed predator–prey system with stage structure for prey