Most polls have now closed across the United States after one of the most divisive races for the White House in recent memory, with voters choosing between two candidates who each framed the election as a fight for the nation's character, democracy and security.