The US dollar sank and stock plummeted as investors faced the possibility of a surprise win by Republican Donald Trump.