Resonance varieties, Chen ranks and formality properties of finitely generated groups