After a wild election night sowed confusion across U.S. markets, investors frantically bid up stocks Nov. 4, sending major averages to the biggest rallies in five months, as they grew more confident that the tightly contested outcome would ensure key e…