Virat Kohli struck a second innings century in the opening Perth Test of the Border-Gavaskar Trophy but then managed only 85 runs in the next seven innings.