In secondary – including exam years – 18% of Scottish students attend school for less than 80% of the time, new data shows