How can I prevent water from puddling on a shower ledge?
Short of recasting the tub I can only think of one solution:  Water always flows downhill, so if you can get some shims under that end of the tub to elevate it enough that water flows away from the wall you're set.  Otherwise invest in a squeegee and wipe the ledge diligently after using the shower.