49ers collapse against Cardinals in Week 3