Bitcoin ends first half of 2018 below $6,000