Planetary systems in star clusters