Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Geometry of the intersection ring of the moduli space of flat connections and the conjectures of Newstead and Witten 