A man who admitted behaving in a threatening or abusive manner at a property in Galashiels has been remanded in custody at Selkirk Sheriff Court.