Ghanaian cocoa farmers are abandoning beans for bullion in an illegal gold mining boom that has ravaged the country’s cocoa production and helped drive global chocolate prices to historic highs.