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