The tidal evolution of dark matter substructure – I. subhalo density profiles