Pakistan's Musharraf announces resignation