President Donald Trump's national security adviser, Michael Flynn, resigns after coming under fire over whether he discussed the possibility of lifting US sanctions on Russia before Trump took office.