Why it hurts so much when a friend abandons you for a new partner – and what to do about it