Derivations and local derivations on Freudenthal almost f-algebras