Dynamics and wake structure of a near-wall flexible cylinder