The former tabloid editor, who has transformed himself into a cable news personality, said that dwindling viewing figures and an anti-gun campaign that alienated a vast swath of his audience had led him to conclude that his show had “run its course”.