Attempts to weaken army tantamount to undermine country: COAS