Stability and Hopf bifurcation analysis in a delay Swarms model