Ultrahigh energy cosmic rays from dark matter annihilation