Citizenship education for young people is taught “weakly” in many schools and should be given a “clear focus” in law, peers have heard.