As Oracle, Palantir and Hewlett-Packard Enterprise move their headquarters out of California, experts say the state needs to find ways to reverse the trend.