Hackers took control of the Twitter accounts of celebrities including Barack Obama, Kanye West and Elon Musk and asked followers to send money.