New figures show lowest school attendance rate in Scotland since current form of records began in 2003-04