Modelling flexible timber diaphragms in masonry buildings subjected to seismic excitations