Microscopic nature of the charge-density wave in the kagome superconductor RbV3Sb5