Sir Keir Starmer has warned China poses "real national security threats to the United Kingdom" - and hit out at Brexit.