IMF's Lagarde: markets got 'Brexit' vote wrong, but did not panic