It's never too late to quit unhealthy habits - but a new study suggests it pays to catch up in your 30s