Kurdish militants have declared a ceasefire in their 40-year conflict with Turkey.