The abrupt resignation of Michael Flynn, US President Donald Trump's national security adviser, has sent shockwaves through American politics.