The armed forces are being trained to protect Lowestoft families and businesses from severe flooding this winter.