Man accused of waiving gun at Starbucks released from jail