Scientists have discovered how aspirin may stop some cancers from spreading, describing it as a "Eureka moment".