Xavi's eventful tenure as Barcelona manager has come to an end, following a disappointing trophyless season.