RBI sold $12 billion in gold to defend forex reserves