Searches for double Higgs production or decay using the CMS detector