Ringgit rebounds to end higher versus US dollar