Exciton–phonon interactions in nanocavity-integrated monolayer transition metal dichalcogenides