Almost Cohen-Macaulay and almost regular algebras via almost flat extensions