Viscous-elastic behaviour of masonry: a homogenization approach