Restricted Boltzmann machine: Recent advances and mean-field theory