Influence of substratum hydration and adsorbed macromolecules on bacterial attachment to surfaces