A&E four-hour target to be scrapped except for most serious cases