Government tried to launch patient data scheme without right safeguards, MPs are told