Friendly bacteria could be used to protect critically ill patients from developing pneumonia, scientists believe.