DeMarcus Cousins signs with Warriors