"Some form of age or functionality restriction" on social media for under-16s will be imposed, the education minister has said.