Stability of cloud-topped boundary layers