US: McMaster to resign, replaced by former ambassador