Associations between lifestyle factors and an unhealthy diet