Social-media companies have seen their revenues swell as stuck-at-home consumers spend more time on their platforms.