Chiral symmetry breaking in QCD: a variational approach