President-elect Donald Trump has said the US will quit the Trans-Pacific Partnership (TPP) free trade deal on his first day in the White House.