Ringgit closes lower versus US dollar