Thanks for the replies.
Having done some more investigation I think the alarm control panel backup battery is probably dead, so when the mains power goes the alarm thinks its under attack and goes off. (The back-up battery in the outside box is obviously OK!)
I'll replace the battery and...