Retention of bacteria in liquid films at agar surfaces