On weak solutions of ultraparabolic equations