Girl given humiliating cavity search