Bitcoin hits nearly three-year peak, homes in on record