Two churches have been damaged in arson attacks, with attackers leaving graffiti that reads 'religious war'.