Ringgit ends slightly lower against US dollar