Parents could be warned against buying their children a smartphone until they reach secondary school under plans being drawn up by ministers.