Visitors to York’s historic walls could be asked for donations to help with their upkeep under council plans.