Homes within 5km of a National Park command a price premium of £18,700 on average, Nationwide Building Society said.