Stability and Hopf bifurcations in a competitive Lotka–Volterra system with two delays