The first man in Cataluna to be given an implanted artificial heart has died just 24 hours after he was told he could go home and lead a normal life.