Indian firms' profit growth hits 3-year high despite war shock