Burundi has released three schoolgirls whose detention over accusations of scribbling on President Pierre Nkurunziza’s picture in textbooks had led to an international outcry.