There is a way to delay cavalry from attacking u from behind. You simply place archers behind ur phalanx, and leave them with fire at will on. It works for me very well.