Dijet azimuthal correlations in p-p and p-Pb collisions at forward LHC calorimeters