Some teachers are turning to food banks and considering quitting to work in supermarkets, Scottish Parliament hears