Iran president rejects resignation of moderate ally Zarif