Oh, I don't doubt that the random walk hypothesis has limits. Warren Buffett is enough proof of that. However it is true enough that it is highly unlikely that a casual amateur should be strongly advised to not try beating random stock movements.
And it is an accurate enough approximation that, whatever the flaws, it has become established orthodox financial theory.