Long NHS waits and rising living costs are harming people’s health, show ONS data