Bitcoin posted its first negative open after rising three days in a row and hitting an all-time high above $40,000.