Completely positive matrices associated with M-matrices