After adjudication, a determination by the court that a child shall be detained pending disposition shall be based on a finding of the court by a preponderance of the evidence that the circumstances surrounding the child are such as to endanger his safety or welfare or that of the community.