Localisation versus self-trapping: Polaron formation in the Anderson-Holstein model