Vilanova set to leave Barcelona