The HST Medium Deep Survey: galaxy morphology at high redshift