The elderly are more likely to face long waits in A&E than younger patients, research shows.