Rivian, which has just started deliveries of its battery-powered pickup truck, surged in its first day of trading after completing one of the biggest IPOs in U.S. history.