Searches for invisibly decaying Higgs bosons with the CMS detector