Measuring and modelling patterns of behaviour in datasets of individual investor trading records using flexible methods