Reddit Inc. shares soared 48% above their initial public offering price, as investors embraced the social media company’s vision of profiting from the growth of artificial intelligence.