Ultrafiltration and reverse osmosis device