Frequent attenders at A&E departments can account for almost one in seven emergency visits to hospital, a new study suggests.