Junction boxes for cavity walls