President Donald Trump is planning to withdraw more than 5,000 of the 14,000 US troops in Afghanistan, a US official said on Thursday, in the latest sign Trump's patience is thinning with America's longest war and overseas military interventions.