It is estimated that up to two-fifths of A&E attendances are avoidable or could be better treated elsewhere, according to NHS England.