Topological symmetry in quantum field theory