Ruling alliance appears to retain power in Nepal