Alastair Cook hits 29th Test ton before being removed for 105 by controversial Mohammad Amir