Chaos in high-dimensional neural and gene networks