Republican Donald Trump will be the next US president, after he defeated Democrat Kamala Harris in November's election.