Court bans Pakistan's Musharraf from standing in elections