The influence of the demographic policy of the state on the functioning of the family as a social institution