Circuit complexity and entanglement in many-body quantum systems