Ringgit closes marginally higher against US dollar