Millions of seeds from trees have been collected and stored as part of an effort to protect UK woodlands.