There are norms developing that should help, but ultimately this won't be fixed until the incentive problems are fixed.
Some of the emerging norms are making data available for replication, publishing your code, and prespecifying your methodology. Also, when building on prior work, it's good to also replicate the finding yourself. I'm not sure how often people do that, but we were encouraged to do so in my PhD program.
Not so much in my PhD, but during one of my postdocs, my advisor thought me the importance of benchmarking and replicating some previous results or models before using them as foundation for my own work.
reply
If you insult me you insult science
reply