Jonah Peretti, BuzzFeed’s co-founder, will step down as chief executive and serve as its president of A.I.