Hopf bifurcation for equivariant conservative and time-reversible systems