Lionel Messi set a career help record as Inter Miami beat New York City FC 5-1 with Tadeo Allende scoring a hat-trick to book spot in MLS Cup final.