Spin and anomalous Hall effects emerging from topological degeneracy in the Dirac fermion system CuMnAs