Scientists have shed new light on the origin of gold, one of the most intriguing mysteries for humankind since ancient times.