Smoking leaves an "archaeological record" of the hundreds of DNA mutations it causes, scientists have discovered.