Credit Suisse chairman resigns after internal investigation