Search for resonant and nonresonant new phenomena in high-mass dilepton final states at $$ \sqrt{s} $$ = 13 TeV