Ringgit closes slightly higher against greenback