Dublin school to review ethos statement over message telling parents students must attend all religious ceremonies