Out-of-plane dynamic behaviour of unreinforced masonry walls in buildings with flexible diaphragms