Deep divisions in the electorate have been exposed in a tumultuous race for the White House