Marc Leishman shot a final-round 68 to win LIV Golf Miami by a shot over Charl Schwartzel and several other major champions.