Bitcoin nears $42,000 as cryptos snap 6-day losing streak