Stability and Hopf bifurcation in a three-neuron unidirectional ring with distributed delays