Officials from Canada, Mexico and the US have signed the revamped version of the trade agreement known as NAFTA.