Two grammar schools in Gloucester blame a 'technical error' for some pupils being told they had passed.