Professional stock pickers in the mutual-fund industry had a tough time in 2024 beating indexes that passively track U.S.