Machine learning accurate exchange and correlation functionals of the electronic density