Weights in homotopy theory