BRST BMS4 symmetry and its cocycles from horizontality conditions