Americans are heading to the polls to choose a new president after one of the most divisive US presidential elections in history.