Bill Ackman’s foundation, which bought a stake in Elon Musk’s social-media platform X, reported the value of its investment dropped by more than half as of the end of last year, a new tax filing shows.