Michael Flynn, the former US national security adviser, has pleaded guilty to making false statements.