A theoretical analysis of the decay of secondary flow following a pipe bend