Working antisocial hours can prematurely age the brain and dull intellectual ability, scientists warn.