Paul Manafort, the chairman of Donald Trump's presidential campaign who has been linked to a pro-Russia lobbying scandal, has resigned.