Quantum-chemical approach to cohesive properties of metallic beryllium