Learnability scaling of quantum states: Restricted Boltzmann machines