Donald Trump pledged to put "America first" and vowed to rebuild the country and restore its promise for all of the people as he was sworn in as the 45th president of the United States.