Method and apparatus for the continuous dehydration of sludge