Search for long-lived particles decaying to leptons with large impact parameter in proton–proton collisions at 13 TeV