Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces On spaces of maps from Riemann surfaces to Grassmannians and applications to the cohomology of moduli of vector bundles 