Critical temperature of nuclear matter and fragment distributions in multifragmentation of finite nuclei