A major hospital has confirmed six of its patients were affected by an outbreak of fungal infections, resulting in two deaths.