Stocks struggle to retain early gains, bitcoin selloff resumes