Torsion, topology and CPT anomaly in two-dimensional chiral U(1) gauge theory