Neither gold nor the other metals you mention were created "in collisions of celestial bodies".
They were created in the cores of stars, which later exploded; sending the material into space. Eventually, that material (and a lot of unburned hydrogen, etc.) coalesced into the Sun and our solar system. A tiny fraction of it wound up as part of the Earth. While it's conceivable that some precious metals might fall to Earth in a meteorite, almost all meteorites found are either rock or iron.