Robots could replace humans within the next few hundred years, Astronomer Royal predicts