Government workers are to receive mandatory training in artificial intelligence (AI) as part of efforts to improve public-sector efficiency and modernise service delivery.