Mr. Rawlings, after initial years leading the country with crackdowns, helped Ghana blossom into a stable democracy.