Fathers who work from home are more likely to be healthier than those who do not, research has shown.