Prospects for BSM searches at the high-luminosity LHC with the CMS detector