Ringgit closes marginally higher against greenback