Bitcoin approached a record as traders around the world watched results trickle in from the US presidential election.