The damping of capillary–gravity waves at a rigid boundary