Tasmania has recorded its hottest temperature of the year so far, following an extended heatwave that swept across the state.