Ringgit ends sharply higher against US dollar