Joint modelling of repeated measurements and time-to-event data