UK PM pledges to be ‘best state partner’ for AI companies as he faces ominous economic and political backdrop