Ringgit end marginally lower against US dollar