UN chief warns of 'generational catastrophe' as pandemic forces schools to be shut down in more than 160 countries.