Mexico has said it and Canada will remain in the North American Free Trade Agreement (NAFTA) even if the US does follow through with its threat to exit it.