Britain failing to capitalise on AI expertise as it falls behind Germany and France in patent league table