Thousands of single-sex blocks have been replaced with mixed-sex toilets as schools seek to accommodate pupils who say they are 'non-binary' or trans.