Days lost because of health conditions such as stress, depression and anxiety have increased by a third since 2010, a study suggests.