What action may a Magistrate take if they believe that detaining a person is necessary to prevent a breach of peace?