Topological effects in continuum two-dimensional U(N) gauge theories