Millions of jobs in some of the most important sectors to the UK economy are at risk of being replaced by AI, according to OBR analysis.