Cyber attacks and building collapses are among the risks schools in England are being urged to prepare for.