Credit Suisse has sold one of its buildings in the heart of Geneva for just over 200 million Swiss francs ($217 million) to an investment foundation.