Mental health outcomes at the end of the British involvement in the Iraq and Afghanistan conflicts: a cohort study