The Guardian is to end posting on X/Twitter from its official accounts, editor-in-chief Katharine Viner told staff.