New research has concluded that anxiety can be a factor in poor school attendance among children and young people.