Ballymena man in court after five-hour police stand-off