Pauline Quirke has been diagnosed with dementia and will be stepping away from acting, her husband has confirmed.