President Donald Trump says he will bar transgender individuals from serving "in any capacity" in the armed forces.