Speculative Attacks and Defenses as Wars of Attrition: Theory and an Example*