Electron-phonon interaction and superconductivity in metallic molecular hydrogen. I. Electronic and dynamical properties under pressure