Multiscale failure modelling of quasi-brittle materials