The Ministry of Defence has confirmed a device which can be used as a “sonic weapon” will be deployed in London during the Olympics.