Smoke 'harms mental ability in children'