A letter to the Health Secretary said NHS Fife was failing ‘to comply with its legal obligations’