Error estimation and adaptive spatial discretisation for quasi-brittle failure