Philipp Hildebrand resigned as head of the Swiss central bank after a currency transaction by his wife last year dented the credibility of the franc’s chief guardian.