Pandit's was a thankless job, marked by rebukes from both shareholders and the Federal Reserve, and grief from Occupy Wall Streeters