Education Secretary says government must “do better” in how it gathers information from children