Figures show that the attainment gap between children from wealthy families and those from poor ones has grown, despite SNP promises to eliminate it