Lack of exercise is just as deadly as smoking and could increase the risk of death, according to a new study.