Test of colour reconnection models using three-jet events in hadronic Z decays