Pak court bans Musharraf from contesting polls for life