President Asif Ali Zardari 's grip on power is increasingly under threat from opposition lawmakers and elements within the powerful military who want him to resign or divest powers to the prime minister and take on a ceremonial role .