High court issues mandamus order for stray cattle management