Ringgit ends higher on liquidity-driven market