High density hydrogen storage in nanocavities: Role of the electrostatic interaction