ELECTRON FIREHOSE INSTABILITY AND ACCELERATION OF ELECTRONS IN SOLAR FLARES