Phonon screening and dissociation of excitons at finite temperatures from first principles