Field of a point source in a randomly stratified medium. I. Resonance expansion method