How does endometriosis affect fertility?

Endometriosis is a common gynaecological condition thought to affect around 1 in 10 women in the UK.