UK public sector has awarded more than 2,000 contracts for AI-related projects in past eight years, analysis found