The convolution equation of Choquet and Deny on nilpotent groups