Saudi Arabia is being accused of using military-grade spyware to target a prominent critic in Britain.