Resummation of rapidity logarithms in B meson wave functions