President Donald Trump's embattled national security adviser Michael Flynn has resigned, following reports that he had misled Vice President Mike Pence and other officials about his contacts with Russia.