An investigation of factors affecting the durability of masonry mortar