Adsorption and capillary condensation on rough surfaces