Phase-Diffusion in Switching Process of Underdamped Josephson Junctions