What can I do to diagnose and fix this problem?
Please search the boards before posting. In this very same topic there's a recent discussion about the same freezing Ubuntu issue.
Read that.
I've been searching for ages, believe me! I saw that thread (or at least, another thread about pulseaudio) but didn't think it was connected to my problem. I'll now follow the advice offered in that thread - thanks.