A man has been remanded in custody at Derry Magistrate's Court less than 24 hours after being released on bail.