The head of the International Monetary Fund, Christine Lagarde, says it is clear that Brexit uncertainty has taken its toll on the UK economy this year.