Spending more time on your hobbies could actually boost your confidence at work, according to a new study