Macfarlanes senior partner Charles Martin has branded the growing danger posed by cyberattacks as an “existential threat” to law firms.