Search for long-lived particles decaying to leptons with large impact parameter in proton-proton collisions at $\sqrt{s}$ = 13 TeV