Web3 Security Explained: Risks, Threats, and Best Practices