Lewis Hamilton ‘was on the painkillers’ after hidden Ferrari test burns off