Doctors have used 3D printing to create a bespoke hip replacement for a woman who has undergone six previous operations, in one of the first cases of its kind.