Ab initio description of high-temperature superconductivity in dense molecular hydrogen