A black schoolgirl was strip searched by police while on her period after being wrongly suspected of carrying cannabis.