Exotic charmonium spectroscopy with CMS