This 2014 paper looked into possibility of forming perchlorates in the atmopshere by photochemical processes - but though they could make sulfates and nitrates they couldn't make anything like enough of the nitrates in that way.
So, I think that basically it is still work in progress to try to figure this out. But the research seems to suggest, probably not a purely atmospheric process.