Anharmonic theory of superconductivity in the high-pressure materials