There’s a right time to unfriend someone—online and in real life