Environmental factors associated with lameness in dairy cattle