Taking a holiday from investing can be harmful