"refused to do their office" is not a phrase I'm familiar with, but in context I would say that you are basically correct, and the author is saying that because "he" is got so wet and cold that his knees wouldn't allow him to stand up.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.