Google DeepMind NHS data deal was 'legally inappropriate'