US President Donald Trump has officially announced a ban on all transgender individuals serving in the military, a move that has sparked widespread debate and criticism from advocacy groups and lawmakers.