Measurement of the inclusive and di erential cross sections of the associated production of a top-quark pair and a W boson, and search for leptoquarks in multilepton nal states with the ATLAS detector