Health and social care businesses build cash buffers but double down on AI investment plans