UN chief will remain in post 'until end of his mandate,' says spokesman