US: Judge declares mistrial in Cosby case