A lower bound on the mass of cold thermal dark matter from Planck