Implications for dark matter annihilation from the AMS-02 $\bar{p}/p$ ratio