Divorcing couple must swap Facebook and dating site passwords