Topological origin of flat bands as pseudo-Landau levels in uniaxial strained graphene nanoribbons and induced magnetic ordering due to electron-electron interactions