On the elastic energy and stress correlation in the contact between elastic solids with randomly rough surfaces