Taking paternity leave can increase the chances of a relationship lasting, study shows