Merge touching faces on model
I suggest to


Join the objects into one object / mesh (select all cubes in Object Mode, CtrlJ)
Enter editmode, select all A (if not already) and Remove Doubles (in W menu)
Deselect all A
Select > Interior Faces
Delete > Only Faces X