Decomposing four-manifolds up to homotopy type