NHS Ayrshire and Arran is to transfer cancer patients after a number of people were treated for infections, including one linked to mould.