Ringgit ends higher against US dollar