Two million people every year go to A&E when they could have been treated at home or with the help of a pharmacist.