A man who started a fire which caused millions of pounds worth of damage to a building in the Cathedral Quarter has been handed a five-month jail sentence for assaulting and resisting police.