Former British number one Kyle Edmund says "my body is telling me it's finally reached the end point" as he announces his retirement.