Record levels of investment are pouring into cybersecurity companies.