Ben Mezrich wrote the book that inspired ‘The Social Network’, Aaron Sorkin’s 2010 film about Facebook’s turbulent origins. His account of Elon Musk’s Twitter/X takeover has the desperate air of an airport read that hankers to be a film script – but he fails to nail his ‘villain’, writes Robert McCrum