Stabilization of rapid frictional slip on a weakening fault by dilatant hardening