New guidance, which is set to take effect in August, will ban pupils from skipping school to protest and increase the cost of fine for absence.