The head of Scotland’s exams body has said a blunder that led to thousands of pupils receiving blank emails on results day was down to “human error” and “ageing infrastructure”.