Millions of people in Great Britain live more than a 10-minute walk away from their nearest park or green space, a study calculates.