Nepal's top court reinstates dissolved parliament