Allen Family Digital will acquire 52% of the digital media company, with BuzzFeed founder Jonah Peretti stepping down as CEO