The Guardian, which has 10.7 million followers on X, has become the first large British media company to retreat from the platform Elon Musk purchased in 2022.