Trump appoints Gen. H. R. McMaster adviser for national security affairs