Palo Alto Networks, a cybersecurity firm based in California, has agreed to acquire Israeli company CyberArk Software in a deal valued at roughly $25 billion.