Modular representations and perverse sheaves on affine flag varieties