Donald Trump appears to have inadvertently confirmed the existence of a covert CIA programme in a Twitter post.