Ranked Voting based Self-Consistency of Large Language Models