HIGH-REDSHIFT GALAXIES IN THE HUBBLE DEEP FIELD : COLOUR SELECTION AND STAR FORMATION HISTORY TO Z 4