NHS to scrap mixed-sex patient areas within a year