A high resolution hydrogen line survey of Messier 31. II - The warped flaring hydrogen layer