Pakistan's President Musharraf resigns; new elections to be held