Search for type-III seesaw heavy leptons using proton-proton collisions at $\sqrt{s}=13$ TeV with the ATLAS detector