A new weapon that uses high-frequency radio waves to take out enemy drones has been trialled by British soldiers.