Investing in robotics could safeguard several thousand jobs and boost the U.K. economy, according to a new Barclays report.