Property (T) for groups graded by root systems