The analysis showed that 386,716 homes in Scotland could face a 'high' or 'very high' risk of severe flooding