NHS staff can refuse to treat racist or sexist patients under new rules