Switzerland coach Ottmar Hitzfeld has announced he will resign from the role and retire from management following next summer's World Cup finals.