Firms buy insurance ‘in mad panic’ as cyber-attacks soar