Modelling of out-of-plane behaviour of masonry walls