Two late goals snatch victory for League One play-off chasers Wycombe Wanderers at 10-man Cardiff City, who lose more ground on leaders Lincoln City.