Einstein–Cartan–Dirac gravity with U(1) symmetry breaking