Donald Trump has secured 276 electoral votes, making him the projected next president of the United States.