Tidal stripping and post-merger relaxation of dark matter haloes: causes and consequences of mass-loss