A non local damage model with permanent strains for quasi-brittle materials