Real-space renormalization-group method for the ground-state properties of quantum lattice models