I was going to say that you're probably thinking of Trantor, the imperial capital, and that the earth was protected by R Daneel Olivaw and his "descendants", but now I just want to wave the nerd flag and link Wikipedia, because you're right about the radioactive but (apparently) wrong about the habitability.
Edit: What petre was referring to was that the eponymous Foundation was deliberately founded on a world poor in radioactives (and other metals), so that they'd be forced to make the most out of what they had, resulting in extremely small, low power equipment.