No, storing a Pokemon in the PC does not lower its friendship. You can only carry 6 around at any given time and Gamefreak aren't that sadistic.
Fainting in wifi & battle maison (or other variants) does not affect friendship. Notice how your Pokemon don't turn towards you like they do in in-game battles (if you've bonded with them really well in amie).