Argentine defender Pablo Zabaleta will leave Manchester City at the end of the season after nine years with the club.