A coupled homogenisation-damage model for masonry cracking