The number of people on long-term sick leave has reached a record high, according to new Office for National Statistics figures.